from datetime import datetime, timedelta

class DateUtil:
    """
    日期处理工具类
    """
    @staticmethod
    def resolve_date_str(time_str):
        """
        解析007特殊时间字符串
        :param time_str: 时间字符串
        :return:
        """
        time_parts = time_str.split(",")
        if len(time_parts) >= 6:
            # 月特殊处理
            month = time_parts[1].replace('-1', '')
            dt_str = f"{time_parts[0]}-{month}-{time_parts[2]} {time_parts[3]}:{time_parts[4]}:{time_parts[5]}"
            # 北京时间+8
            match_time = datetime.strptime(dt_str, "%Y-%m-%d %H:%M:%S") + timedelta(hours=8)
